package com.ruoyi.pingjiao.service;

import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.pingjiao.domain.Coureassess;
import com.ruoyi.pingjiao.domain.CourseassessName;
import com.ruoyi.pingjiao.domain.Courseclass;
import com.ruoyi.pingjiao.domain.vo.AverageVo;
import com.ruoyi.pingjiao.domain.vo.FinishAverage;

import java.util.ArrayList;
import java.util.List;

public interface CourseAssessService {
    List<Coureassess> selectCourseAssessList(Coureassess coureassess);

    Object getCourseAssessById(Long id);

    int add(Coureassess coureassess);

    int update(Coureassess coureassess);

    int delete(Long[] id);

    String importDate(List<Coureassess> list, boolean updateSupport, String username);


    ArrayList<Coureassess> list(Integer courseId);

    List<Coureassess> selectPercentList();

    int countByTeacherId(Long teacherId);

    List<Coureassess> caluationAverage(Integer courseId);
    //最大
    String selectCourseassessMaxByCourseId(Long courseId);
    //最小
    String selectCourseassessByMin(Long courseId);

    Coureassess selectCourseassessInfo(Long courseId,Integer id);

    List<Coureassess> selectInfoByTeacherId(Long teacherId);

    AverageVo selectAverage(Long courseId);

    List<Coureassess> getAverageByCourseId(Integer courseId);

    List<Coureassess> getScoreByCourseId(Integer courseId);
}
